package com._方法;

public class Test13 {
    public static void main(String[] args) {
        int[] arr = {23, 46, 79, 58, 23, 52, 46, 12, 49, 75, 156, 4893};
        int min = min(arr);
        System.out.println(min);

    }

    public static int min(int[] arr) {
        int min = arr[0] ;
        for (int i = 0; i < arr.length; i++) {
           if(min>arr[i]){
               min = arr[i];

           }
        }
        return min;
    }
}
